package cn.gson.school.dao.xitong;

import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;

import cn.gson.school.entity.xitong.DeptEntity;

@Repository
public interface DeptSerchDao extends CrudRepository<DeptEntity, Long> {

	@Query(nativeQuery=true,value="select d.dept_id from tb_xt_dept d where d.dept_name=?1")
	Long xtdeptId(String deptName);
	
	
}
